package com.alcatel_lucent.coff.model.sections

import com.alcatel_lucent.coff.model.BaseEntity

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-4-14
 * Time: 下午9:13
 * To change this template use File | Settings | File Templates.
 */
class SymEnt extends BaseEntity{
    public static final int LEN = 18

    //len 8
    String cName
    int ulZero   // 字符串表标识
    int ulOffset   // 字符串偏移

    int ulValue
    short iSection
    short usType
    byte usClass
    byte usNumAux

    @Override
    String toString(){
        int cNameLen = 16
        String.format("\n%${cNameLen}s\t%08X\t%4d\t%04X\t%02X\t%02X", cName, ulValue, iSection, usType, usClass, usNumAux)
//        String.format("\n%8s\t%08X\t%08X\t%08X\t%4d\t%04X\t%02X\t%02X", cName, ulZero, ulOffset, ulValue, iSection, usType, usClass, usNumAux)
    }
}
